package com.ff.miaosha.exception;

import com.ff.miaosha.result.CodeMsg;

public class GlobalException extends RuntimeException {

    private CodeMsg cm;

    public GlobalException( CodeMsg cm) {
        super(cm.getMsg());
        this.cm = cm;
    }

    public CodeMsg getCm() {
        return cm;
    }
}
